package Person;

import java.util.Scanner;

public class exit {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while(sc.hasNext()) {
            int n = sc.nextInt();
            int begin = sc.nextInt();
            int end = sc.nextInt();
            StringBuilder str = new StringBuilder();
            for (int i = 0; i < n; i++) {
                str.append(i);
            }
            System.out.println(str.substring(begin,end));
        }
    }
}
